//
//  SureSingleViewCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/8.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "SureSingleViewCell.h"
#import <UIImageView+WebCache.h>

@interface SureSingleViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;
@property (weak, nonatomic) IBOutlet UILabel *countLab;
@property (weak, nonatomic) IBOutlet UILabel *freightLab;

@end
@implementation SureSingleViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(PaySingleModel *)model
{
    _model = model;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.thumbnailUrl] placeholderImage:GetImage(@"default_goods_image")];
    self.nameLab.text = model.productName;
    self.priceLab.text = [NSString stringWithFormat:@"¥%.2f",model.price];
    self.countLab.text = [NSString stringWithFormat:@"x %zd",model.productCount];
    self.freightLab.text = [NSString stringWithFormat:@"¥%.2f",model.freight];
}

@end
